package com.vcens.dingnotice.repository;

import com.vcens.dingnotice.entity.TypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TypeMapper {

    @Results({
            @Result(property = "className", column = "class_name"),
            @Result(property = "createTime", column = "create_time"),
            @Result(property = "updateTime", column = "update_time")
    })
    @Select("SELECT * FROM type_infos WHERE id = #{id}")
    TypeEntity selectById(Integer id);
}
